#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<assert.h>
#include<stdlib.h>
#include<stdbool.h>

typedef int QDateType;
typedef struct QueueNode
{
	struct QueueNode* next;
	QDateType val;
}QueueNode;

typedef struct Queue
{
	QueueNode* head;
	QueueNode* tail;
}Queue;

void QueueInit(Queue* ps);

void QueuePush(Queue* ps, QDateType x);

void QueuePop(Queue* ps);

QDateType QueueFront(Queue* ps);

QDateType QueueBack(Queue* ps);

bool QueueEmpty(Queue* ps);

int QueueSize(Queue* ps);

void QueueDestory(Queue* ps);